package com.java.multipledatasource.spring.service;

import org.springframework.context.annotation.*;
import org.springframework.stereotype.Component;

/**
 * @author huxb
 * @date 2020/10/18 0018 下午 9:33
 * @Desciption
 */

//@Configuration
//
//@ComponentScans({})
//@ImportResource
//@Import()
@Component
public class Test {

    public static void main(String[] args) {
        test(new UserServiceImpl1());
        test(new UserServiceImpl2());
    }

    public static void test(UserService userService) {
        userService.say();
    }
}
